import request from "../utils/request";

export const getRoleList = (page: number = 1) => {
    return request({
        url: '/admin/role/list',
        params: { page: page }
    })
}

export const addRole = (data: any) => {
    return request({
        url: '/admin/role/add',
        method: 'post',
        data: data
    })
}

export const delteRole = (roleId:number) =>{
    return request({
        url: '/admin/role/delte'+roleId,
        method: 'delete',
    })
}